include('shared.lua')
local alpha = 0
function Flareflash()
	alpha = 350
end

local function Flarefade()
	alpha = alpha - 1
	if alpha < 0 then
		alpha = 0
	end
	ca = math.Clamp(alpha, 0, 255)
	surface.SetDrawColor( 255, 255, 255, ca)
	surface.DrawRect( 0, 0, surface.ScreenWidth(), surface.ScreenHeight())
end
hook.Add("HUDPaint", "Flare", Flarefade)

